var ReactDOM=require('react-dom');
var ReactRouter=require('react-router'),
    //withRouter=ReactRouter.withRouter,
    hashHistory=ReactRouter.hashHistory,
    IndexRoute=ReactRouter.IndexRoute,
    Route=ReactRouter.Route,
    Router=ReactRouter.Router;
require('./utils/iconfont');
require('./css/amazeui.touch.min.css');
require('./css/app.css');

//首页
var Index=require('./pages/Index');
var Edit=require('./pages/Edit');
var Setting=require('./pages/Setting');

ReactDOM.render(
    <Router history={hashHistory}>
        <Route path="/">
            <IndexRoute component={Index}/>
            <Route path="/index" component={Index}/>
            <Route path="edit/:type(/:id)" component={Edit}/>
            <Route path="setting" component={Setting}/>
        </Route>
    </Router>
    ,
    document.getElementById('container')
);